package com.boot;
//主程序类
//这是springboot应用

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
/**
 * Created by 幻 on 2022/4/1.
 */
public class main {
    public static void main(String[] args){
//        1.返回我们IOC容器
        ConfigurableApplicationContext run = SpringApplication.run(main.class,args);
//        2.查看容器里面的组件
        String[] names = run.getBeanDefinitionNames();
        for (String name : names ){
            System.out.println(name);
        }
    }
}
